package com.czl.base.data.bean.tengyun

import java.io.Serializable

class AssetHandleFacilityBean(
    var id: Int? = null,
    var facilityId: Int? = null,
    var param1: Int? = null,
    var facilityName: String? = null,
    var locationDesc: String? = null,
    var facilityNo: String? = null,
    var status: Int? = null,
    var planAssetType: Int? = null,
    var reasonClassification: Int? = null,
    var reason: String? = null,
    var price: Double? = null,
    var position: Int? = null,
    var selected: Boolean? = false,
    var selectedInList: Boolean? = false,
    var statusName: String? = null,
    var planAssetTypeTemp: String? = "请选择拟处置方式",
    var reasonTypeTemp: String? = "请选择处置原因",
    var fileList: MutableList<FileBean>? = null,
    var fileUrl : String? = null
) : Serializable {
    fun getHandleResultStr(): String {
        if (planAssetType != null) {
            return HandleResultList[planAssetType!!]
        }
        return ""
    }

    fun getReasonTypeStr(): String {
        if (reasonClassification != null) {
            return ReasonTypeList[reasonClassification!!]
        }
        return ""
    }
}

var HandleResultList = arrayListOf<String>("报废", "报损", "出售")
var ReasonTypeList = arrayListOf<String>(
    "其他", "已超过使用年限无法使用的资产", "因技术原因并经科学论证", "因更新改造替换下来的淘汰资产或配件", "设备长期失修，主要零部件无法补充的",
    "主要部件损坏严重，无法修复的，或虽能修复，但维修费用达到重新购置设备费的50%及以上的", "因单位分立、撤销、合并、改制、隶属关系改变等原因发生的产权或者使用权转移的资产",
    "盘亏、呆账及非正常损失的资产", "依照国际有关规定需要进行资产处置的其他情形"
)

